/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package DAO;

import javax.persistence.EntityManager;
import javax.persistence.EntityManagerFactory;
import javax.persistence.EntityTransaction;
import javax.persistence.Persistence;
import org.hibernate.Session;
import org.hibernate.Transaction;
import util.HibernateUtil;

public class Test {
    
    public static void main(String [] a){
        Service service=new Service();
        Parcours parcours=new Parcours(new Integer(3033));
        parcours.setIntitule("M1Info2");
        service.addParcours(parcours);
        System.out.println("parcours:\n"+service.getParcours().toString());  
    }
}
